namespace Cos.Core.NHibernate.Mapping
{
    using FluentNHibernate.Mapping;

    public class ArticleMap : ClassMap<ArticleDataModel>
    {
        public ArticleMap()
        {
            this.Table("Article");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("Id");
            this.Map(x => x.CreationDate).Not.Nullable().Column("CreationDate");
            //this.HasMany(x => x.ArticleCultures).KeyColumn("ArticleId");
            //this.HasMany(x => x.ArticleSuscribers).KeyColumn("ArticleId");
           // this.HasMany(x => x.BlogArticleTags).KeyColumn("ArticleId");
            this.Map(x => x.BlogId).Column("BlogId");
        }
    }
}